<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Graduate School Application - Applicant Registration</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="resource/styleCSS.css" />
	<link rel="stylesheet" type="text/css" href="resource/columnCSS.css" />
</head>
<body>
	<%
		String error = request.getParameter("error");
	%>
	<p class="sansserif">
	<div class="container">
	<div class="center_div">
		<div class="colmask threecol">
		<div class="colmid">
		<div class="colleft">
			<div class="bodycol">
				<p><b>Applicant Registration</b></p>
			</div>
			<div class="sidecol">
				<p><a href="index.html">Back to Login</a></p>
			</div>
		</div>
		</div>
		</div>
		<div style="clear:both;"></div>
			
		<ul class="none">
		<%
			if (error != null) {
				if (error.contentEquals("password")) {
					out.println("<li><i>Password entered is incorrect!!!</i></li>");
					out.println("<li><i>Please try again.</i></li>");
				}
				else if (error.contentEquals("email")) {
					out.println("<li><i>This email has been registered.</i></li>");
					out.println("<li><i>Please login using the designated " + 
								"account for that email.</i></li>");
				}
				else {
					out.println("<li><i>The following user name, " + error + 
								" has already been taken</i></li>");
					out.println("<li><i>Please try again.</i></li>");
				}
			}
		%>
		</ul>
		<form method="GET" action="registerConfirmJSP.jsp">
			<ul class="none">
			<li>Username: <input type="text" name="uname"/> </li>
			<li>Password: <input type="password" name="pword"/> </li>
			<li>Retype Password: <input type="password" name="rpword"/> </li>	
			<li>Email: <input type="text" name="email"/> </li>					
			</ul>
			<input type="submit" value="Create my Account"/>
		</form>
	</div>
	</div>
</body>
</html>